package comxin.object;

public class Equals {
    private String name;

    public Equals() {
    }

    public Equals(String name) {
        this.name = name;
    }

    public boolean myEquals(Object otherObject){
       if (this==otherObject){
           return true;
       }
       if (otherObject==null){
           return false;
       }
       if (getClass()!=otherObject.getClass()){
           return false;
       }
       Equals other = (Equals) otherObject;
       return name.equals(other.name);
   }
}
